package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Getter@Setter
public class Salary {
    //工资编号
    private Long id;
    //员工ID
    private Employee empId;
    //员工姓名
    private Employee empName;

    //月份
    @DateTimeFormat(pattern = "yyyy-MM")
    @JsonFormat(pattern = "yyyy-MM")
    private Date month;

    //基本工资
    private BigDecimal basicsalary;

    //工作天数
    private Long workday;

    //迟到天数
    private Long lateday;

    //早退天数
    private Long earlyoutday;

    //补签天数
    private Long supplementday;

    //最终工资
    private BigDecimal finalsalary;

    //结算时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date accountday;

}